const path = require('path');

const resolve = dir => path.resolve(__dirname, dir);

module.exports = {
  runtimeCompiler: true,
  devServer: {
    // 遮屏提示
    overlay: {
        "warnings": false,
        "errors": false
    }
  },
  chainWebpack: (config) => {
    // 快捷访问方式
    config.resolve.alias
      .set('@', resolve('src'))
  },
};